package com.database.character;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

//评论类
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@ApiModel("评论类")
public class Comment {
    @ApiModelProperty("评论id")
    private Integer commentId; //评论id

    @ApiModelProperty("被评论的帖子id")
    private Integer replyId; //被评论的帖子id

    @ApiModelProperty("被评论的评论id")
    private Integer replyCommentId; //被评论的评论id

    @ApiModelProperty("评论内容")
    private String content; //评论内容

    @ApiModelProperty("评论时间")
    private LocalDateTime postTime; //评论时间

    @ApiModelProperty("评论者id")
    private Integer userId; //评论者id

    @ApiModelProperty("评论类型")
    private Integer commentType; //评论类型,0代表对帖子的回复,1代表对评论的回复
}
